public class Test {
    public static void main(String[] args)
            throws CloneNotSupportedException {
        Person person1=new Person(24,"老大");
        Person person2=(Person) person1.clone();
        System.out.println(person2.age+" "+person2.name+" "+person2.m1.money);
        person1.m1.money=13;
        person2.m1.money=66;
        System.out.println(person1.m1.money);
        System.out.println(person2.m1.money);
    }
}
